
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<meta name="description" content="" />
</head>


<body>
<!-- 头部开始 -->
<include file="Public/header" />
<!-- 头部结束 -->

<!-- 首页轮播图片 轮播js 广告-->
<script src="/Template/pc/kty/Static/js/slider.js"></script>
<script type="text/javascript">
// 首页轮播图片 轮播js 广告
$(function() {
    var bannerSlider = new Slider($('#banner_tabs'), {
        time: 5000,
        delay: 400,
        event: 'hover',
        auto: true,
        mode: 'fade',
        controller: $('#bannerCtrl'),
        activeControllerCls: 'active'
    });
    $('#banner_tabs .flex-prev').click(function() {
        bannerSlider.prev()
    });
    $('#banner_tabs .flex-next').click(function() {
        bannerSlider.next()
    });
})
</script>
<!-- 首页轮播图片 轮播js 广告 end-->
<!--------banner-开始-------------->
    <div class="nav-banner">
        <div id="banner_tabs" class="flexslider">
            <ul class="slides">
                <adv limit="5" item="v" pid="2">
                    <li style="margin: 0 auto;background: url('{$v[ad_code]}') center center no-repeat;">
                        <a href="{$v.ad_link}" <if condition="$v['target'] eq 1">target="_blank"</if>></a>
                    </li>
                </adv>
            </ul>
            <!--<ul class="flex-direction-nav">
                <li><a class="flex-prev" href="javascript:;">Previous</a></li>
                <li><a class="flex-next" href="javascript:;">Next</a></li>
            </ul>-->
            <ol id="bannerCtrl" class="flex-control-nav flex-control-paging">
                <adv limit="5" item="v" pid="2">
                    <li><a></a></li>
                </adv>
            </ol>
        </div>  
    </div>
<!--------banner-结束-------------->

<!--------热卖-首发-新闻-公告-开始-------------->
    <div class="layout">
        <div class="fqtitle">
            <img src="/Public/images/jr.png" height="61px" width="300" style="margin-top: -1px" alt=""/>
        </div>
        <div class="huopinkuang">
            <tpshop sql="select * from `__PREFIX__goods` where is_new = 1 order by goods_id desc limit 4" item="v" key="k" >
                <div class="caikuang">
                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                        <img src="{$v.goods_id|goods_thum_images=294,175}" alt=""/>
                    </a>
                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                        <h3>{$v.goods_name|getSubstr=0,25}</h3>
                    </a>
                    <p>￥{$v['shop_price']} <span>￥{$v['market_price']}</span></p>
                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"><div class="qianggou">抢购</div></a>
                    <div class="lvtiao">
                        <div class="lv40p" style="width: {:intval(100-$v['store_count']/$v['goods_limit']*100)}%"></div>
                    </div>
                    <div class="xianliang">
                        <span>限量{$v['goods_limit']}件</span>
                        <span>仅剩{$v['store_count']/$v['goods_limit']*100|intval}%</span>
                    </div>
                </div>
            </tpshop>
        </div>

        <div class="fenlei">
            <img src="/Public/images/fenleititle.png" alt=""/>
        </div>
        <div class="leixing">
            <a href="">
                <div class="lxkuang lx1">
                <img src="/Public/images/tu2.png" alt=""/>
                <div class="lxwen">
                    <h2>水产品</h2>
                    <p>THE FINE PEACH</p>
                    <p>___________</p>
                </div>
            </div>
            </a>

            <a href="">
                <div class="lxkuang lx1">
                    <img src="/Public/images/tu3.png" alt=""/>
                    <div class="lxwen">
                        <h2>食疗蔬菜</h2>
                        <p>THE FINE PEACH</p>
                        <p>___________</p>
                    </div>
                </div>
            </a>

            <a href="">
                <div class="lxkuang lx1">
                    <img src="/Public/images/tu4.png" alt=""/>
                    <div class="lxwen">
                        <h2>热带水果</h2>
                        <p>THE FINE PEACH</p>
                        <p>___________</p>
                    </div>
                </div>
            </a>

            <a href="">
                <div class="lxkuang lx1">
                    <img src="/Public/images/tu5.png" alt=""/>
                    <div class="lxwen">
                        <h2>蟹田米系列</h2>
                        <p>THE FINE PEACH</p>
                        <p>___________</p>
                    </div>
                </div>
            </a>
        </div>
        </div>

<!--希冀-->
<div class="xiji">
    <img src="/Public/images/xijizi.png" alt=""/>
</div>
<div class="layout">
    <div class="fenlei">
        <img src="/Public/images/jxtj.png" alt=""/>
    </div>
    <div class="jxflkuang">
        <tpshop sql="select * from `__PREFIX__goods` where is_recommend = 1 and is_on_sale = 1 order by goods_id desc limit 6" key="k" item='v'>
            <if condition="$k eq 0">
                <div class="fl1">
                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                        <img src="{$v.goods_id|goods_thum_images=260,320}" alt=""/>
                    </a>
                    <h2>热销推荐</h2>
                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}"><h3>{$v.goods_name|getSubstr=0,20}</h3></a>
                    <p>The FINE PEACH</p>
                    <h1>¥{$v.shop_price}</h1>
                    <a href="javascript:;" onclick="AjaxAddCart({$v.goods_id},1,0);">
                    <div class="joinsp">
                        加入购物车
                    </div>
                    </a>
                </div>
            <elseif condition="in_array($k, array(1,2))"/>
                <div class="fl2 <if condition='$k eq 2'>fl3</if>">
                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                        <img src="{$v.goods_id|goods_thum_images=280,210}" alt=""/>
                    </a>
                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                        <h3>{$v.goods_name|getSubstr=0,30}</h3>
                    </a>
                    <div class="flprice">
                        <h1>￥{$v.shop_price}</h1>
                        <a href="javascript:;" onclick="AjaxAddCart({$v.goods_id},1,0);">   <img src="/Public/images/spcar.png" alt=""/></a>
                    </div>
                </div>
            <elseif condition="in_array($k, array(3,4,5))"/>
                <div class="fl4">
                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                        <img src="{$v.goods_id|goods_thum_images=230,160}" alt=""/>
                    </a>
                    <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                        <h3>{$v.goods_name|getSubstr=0,16}</h3>
                    </a>
                    <div class="flprice andt">
                        <h1>￥{$v.shop_price}</h1>
                        <a href="javascript:;" onclick="AjaxAddCart({$v.goods_id},1,0);">   <img src="/Public/images/spcar.png" alt=""/></a>
                    </div>
                </div>
            </if>
        </tpshop>
    </div>

    <div class="rx">
        <img  class="rximg" src="/Public/images/rx.png" alt=""/>
    </div>

    <div class="rxdk">
     <div class="rxtj">
     <div class="baikuang">
        <h2>热销推荐</h2>
        <tpshop sql="select * from `__PREFIX__goods` where is_hot = 1 and is_on_sale = 1 order by sales_sum desc limit 1" key="k" item='v'>
            <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                <h3>{$v.goods_name|getSubstr=0,20}</h3>
            </a>
            <p>THE FINE PEACH</p>
            <h1>¥{$v.shop_price}</h1>
            <a href="javascript:;" onclick="AjaxAddCart({$v.goods_id},1,0);">
                <div class="joinsp">
                    加入购物车
                </div>
            </a>
            <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                <img src="{$v.goods_id|goods_thum_images=330,200}" alt=""/>
            </a>
         </div>
        </tpshop>
     </div>
        <div class="rxphb">
            <h3>热销排行榜</h3>
            <div class="rxsp">
                <tpshop sql="select * from `__PREFIX__goods` where is_on_sale = 1 order by sales_sum desc limit 1,6" key="k" item='v'>
                    <div class="sptit">
                        <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                            <img src="{$v.goods_id|goods_thum_images=120,120}" alt=""/>
                        </a>
                        <div class="spwenzi">
                            <a href="{:U('/Home/Goods/goodsInfo',array('id'=>$v[goods_id]))}">
                                <h3>{$v.goods_name|getSubstr=0,20}</h3>
                            </a>
                            <h2>¥{$v.shop_price}</h2>
                            <p>销量：<span>{$v.sales_sum}</span></p>
                        </div>
                    </div>
                </tpshop>
            </div>
        </div>
    </div>
</div>

<!-- footer-开始 -->
<include file="Public/footer" />
<!-- footer-结束 -->

</body>
</html>